# -*- coding: utf-8 -*-
import requests
import  urllib
urls = []
for i in range(20,22):
    for j in range(1,254):
        url = 'http://'+str('172.16.'+str(i)+'.'+str(j))+'/users/sign_in'
        try:
            if (requests.get(url = url, timeout=1).reason == "OK"):
                print url,"okokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokokok"
            else:
                print url,"错误错误错误"
            urls.append(url)
        except:
            print url,"超时"
